package com.lin.dao;

import com.lin.pojo.Wares;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:StockTableDao
 * Package:com.lin.dao
 * Author: hellcat
 * Date: 2020/1/7
 * ♣♣♣
 */

public interface StockDao {
    List<Wares> getStock(@Param("idOrName") String idOrName, @Param("category1") String category1,
                         @Param("category2") String category2, @Param("storeId") int storeId);

    Integer updateMinInventory(@Param("id") Integer id,
                               @Param("minInventory") int minInventoryValue,
                               @Param("storeId") int storeId);


    Integer updateInventory(@Param("id") Integer idI, @Param("inventory") Integer inventoryValueI,
                            @Param("storeId") int storeId);

    double getPurchaseByCategoryId(@Param("categoryId") int categoryId,
                                   @Param("storeId") int storeId);
}
